package com.springboot2.security.entity.po;

import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.enums.IdType;
import lombok.Data;

import java.util.Set;

@Data
@TableName("t_resource")
public class WebResource {
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;
    private Integer pid;
    private String name;
    private String url;

    /**
     * 哪些资源拥有该资源
     */
    private Set<RoleInfo> roles;

    /**
     * 资源请求地址
     **/
    private String address;

    /**
     * 权限标志
     */
    private String permission;

    private String icon;
}
